package com.nuance.assignment.fileInfo.server.validation.constraints;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import com.nuance.assignment.fileInfo.server.validation.validator.PathExistsValidator;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy=PathExistsValidator.class)
public @interface PathExists {

	String message() default "{com.nuance.assignment.fileInfo.server.validation.constraints.PathExists.message}";
	
	Class<?>[] groups() default { };
	
	Class<? extends Payload>[] payload() default { };
	
}
